home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
solution3.24
< prev
next >
Wrap
Text File
|
2007-02-28
|
324b
|
17 lines
0010 //RANDOMIZE // NOT NEEDED WITH CBM COMAL
0020 DIM CHAR$ OF 1
0030 SUM:=0
0040 FOR EX:=1 TO 25 DO
0050 COUNT:=0
0060 REPEAT
0070 CODE:=RND(65,90)
0080 CHAR$:=CHR$(CODE)
0090 PRINT CHAR$
0100 COUNT:=COUNT+1
0110 UNTIL CHAR$="Z"
0120 PRINT COUNT
0130 SUM:=SUM+COUNT
0140 ENDFOR EX
0150 AVERAGE:=SUM/25
0160 PRINT AVERAGE